#include<bits/stdc++.h> 
using namespace std;
int main(){
    long a, b, sum;
    cin>>a>>b;
    stringstream s; //用于数字转字符串的字符串流 
    string ss;
    sum = a + b;
    s<<sum;  //用于数字转字符串流 
    ss = s.str();  //字符串流转字符串 
    string ans = "";
    int count = 0;
    for(int i = ss.length()-1;i>=1;i--){
    	ans = ss[i] + ans;
    	if(count == 2 && i != 1){
    		ans = "," + ans;
    		count = 0;
		}
		else ++count;
	}
	if(ss[0] != '-' && count == 3){
		ans = "," + ans;
		ans = ss[0] + ans;
	}
	else ans = ss[0] + ans;
    cout<<ans<<endl;
    return 0;
}